package com.ssm.assemble;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class assmeableTest {
    public static void main(String[] args) {
        String xmlPath = "bean5.xml";
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlPath);
        User bean1 = (User) applicationContext.getBean("user1");
        User bean2 = (User) applicationContext.getBean("user2");
        System.out.println(bean1);
        System.out.println(bean2);
    }
}
